package kr.saeildamil.androidstudy.ch19;

import kr.saeildamil.androiddforstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch19Main extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch19_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch19_btn01:
			intent.setClass(this, ThreadTest.class);
			break;
		case R.id.ch19_btn02:
			intent.setClass(this, RunnableTest.class);
			break;
		case R.id.ch19_btn03:
			intent.setClass(this, HandlerTest.class);
			break;
		case R.id.ch19_btn04:
			intent.setClass(this, PostTest.class);
			break;
		case R.id.ch19_btn05:
			intent.setClass(this, RunOnUIThreadTest.class);
			break;
		case R.id.ch19_btn06:
			intent.setClass(this, HandlerMessageTest.class);
			break;
		case R.id.ch19_btn07:
			intent.setClass(this, ObtainedHandlerMessageTest.class);
			break;
		case R.id.ch19_btn08:
			intent.setClass(this, LooperTest.class);
			break;
		case R.id.ch19_btn09:
			intent.setClass(this, JobScheduleTest.class);
			break;
		case R.id.ch19_btn10:
			intent.setClass(this, JobSchedulePost.class);
			break;
		case R.id.ch19_btn11:
			intent.setClass(this, LongTimeTest.class);
			break;
		case R.id.ch19_btn12:
			intent.setClass(this, AsyncTaskBasic.class);
			break;
		case R.id.ch19_btn13:
			intent.setClass(this, BackWork.class);
			break;
		}
		startActivity(intent);
	}
	
}
